//此代码由机器自动生成，请不要手动修改
namespace WpfTest.Entity{
	namespace UserInfo_ {
	//原始js通讯声明
		declare function mbQuery(msgId: number, request: string, onResponse: (id: number, response: string) => any): void;
		//js通讯回调
		function OnResponse(msgId: number, response: string) {
			response = decodeURI(response);
			response = unescape(response);
			return response;
		}
		//js通道异步封装
		export async function TneQueryAsync(msgId: number, request: string): Promise<any> {
			return new Promise<any>((resolve, reject) => {
				//调用原始callback的js通讯接口
				request = escape(request);
				mbQuery(msgId, request, (id, response) => {
					resolve(OnResponse(id, response));
				});
			});
		}
		export class ServiceInvokeInfo{
			public ServicePath: string;
			public MethodName: string;
			public Args: Array<any>;
		}
	}
	export class UserInfo {
		private Name_:string;
		public set Name(value:string) {this.Name_=value; }
		public get Name():string { return this.Name_; }
		private Age_:number;
		public set Age(value:number) {this.Age_=value; }
		public get Age():number { return this.Age_; }
	}
}
